package com.example.hello.vo;

import lombok.Data;
import java.util.List;

@Data
public class PageResultVO<T> {
    private Long total;
    private List<T> list;

    public static <T> PageResultVO<T> of(Long total, List<T> list) {
        PageResultVO<T> vo = new PageResultVO<>();
        vo.setTotal(total);
        vo.setList(list);
        return vo;
    }
} 